package com.qijian.maindata.domain.vo;

import com.qijian.common.annotation.Excel;
import com.qijian.maindata.domain.Factory;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@EqualsAndHashCode(callSuper = true)
@Data
@ToString
public class FactoryVo extends Factory {

    @Excel(name = "负责人",sort = 7)
    private String chargeUserName;

    public String getChargeUserName() {
        if (null == this.getChargeUser()) {
            return "";
        }
        return this.getChargeUser().getNickName();
    }


    private String factoryCode;
    private String factoryName;
    private String factoryType;

    private String factoryTypeName;
    private String chargeName;
    private String factoryId;
    private String locationName;
    private String locationId;
}
